package com.example.myapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.appcompat.widget.ThemedSpinnerAdapter;

public class MyHelper extends SQLiteOpenHelper {
    public MyHelper(Context context){
        super(context,"user.db",null,2);
    }
    public void onCreate(SQLiteDatabase db){
        db.execSQL("CREATE TABLE user (_id INTEGER PRIMARY KEY AUTOINCREMENT, phone VARCHAR(20),pwd VARCHAR(20))");
    }
    public void onUpgrade (SQLiteDatabase db,int oldVersion,int newVersion){

    }
}
